/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ca.trader.db;

/**
 * Contains the constraints for the User DB table (generated automatically by JPA)
 * @author Ahsan
 */
public class UserTableConstraints
{
	 // The max length of a user ID	 
	 public static final int CONSTRAINT_ID_MAX_LENGTH = 200;
	 
	 // The max length of a user password (that's crypted)
	 public static final int CONSTRAINT_PASSWORD_MAX_LENGTH = 600;
	 
	 // The max length of a user's first name
	 public static final int CONSTRAINT_FIRST_NAME_MAX_LENGTH = 50;
	 
	 // The max length of a user's last name
	 public static final int CONSTRAINT_LAST_NAME_MAX_LENGTH = 50;
	 
	 // The max length of a user's email
	 public static final int CONSTRAINT_EMAIL_MAX_LENGTH = 50;
	 
	 // The max length of a country name
	 public static final int CONSTRAINT_COUNTRY_MAX_LENGTH = 50;
	 
	 // The max length of a region name
	 public static final int CONSTRAINT_REGION_MAX_LENGTH = 50;
	 
	 // The max length of a city name
	 public static final int CONSTRAINT_CITY_MAX_LENGTH = 50;
	 
	 // The length of the attribute to specify whether a user has been activated (this should be 0 or 1)
	 public static final int CONSTRAINT_ACTIVATION_MAX_LENGTH = 1;
}
